package com.woniuxy.cloud.carl.car.common;


import com.woniuxy.result.Messagable;

public enum CarResultCode implements Messagable {

    BRAND_NOT_EXIST(2100, "品牌不存在"),
    CAR_STYLE_NOT_EXIST(2102,"车型不存在"),
    CAR_IS_EXIST(2103,"车辆已存在"),
    BRAND_IS_EXIST(2104,"品牌已存在"),
    SORT_IS_EXIST(2105,"车系已存在"),
    SORT_NOT_EXIST(2106,"车系不存在"),
    STYLE_IS_EXIST(2107,"车型已存在"),
    STYLE_NOT_EXIST(2108,"车型不存在"),
    YEAR_IS_EXIST(2109,"生产年份已存在"),
    YEAR_NOT_EXIST(2110,"生产年份不存在")
    ;

    private Integer code;
    private String message;

    private CarResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
